package com.example.springboot.service;


import com.example.springboot.controller.DTO.LoginDTO;
import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.controller.request.LoginRequest;
import com.example.springboot.controller.request.PasswordRequest;
import com.example.springboot.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {

    List<User> list();

    PageInfo<User> page(BaseRequest baseRequest);

    void save(User user);


    void changePassword(PasswordRequest request);

    LoginDTO login(LoginRequest request);

    User getById(Integer valueOf);

    void register(User user);
}
